#include <stdio.h>
#include <math.h>
#define PI 3.14159
int main()
{
		int x;
	printf (" program 1 is the area of tringle and program 2 is the volume and the surface area for sphere \n");
	printf(" Enter the number of your program");
	scanf("%d",&x);
	switch(x)
	{
		case 1: 	{double side1,side2,side3,area,z,y;
	 printf("the lengths of the three sides of a triangle");
	 scanf("%lf%lf%lf",&side1,&side2,&side3);
	 z=(side1+side2+side3)/2;
	 y=z*(z-side1)*(z-side2)*(z-side3);
	 area =sqrt(y);
	 printf("the area of the tringle is %lf",area);
	}
	break;
	case 2: {	double r,volume,area;
		printf("Enter the radius for the sphere");
		scanf("%lf",&r);
		volume = (4.0/3)*PI*pow(r,3),
		area = 4*PI*pow(r,2);
		printf(" the volume is %lf the area is %lf",volume,area);
	}
	   break;
	   default:   printf("Error");
	}
	}

